<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-06-25 10:13
 * Modified Time: 2019-06-25 10:13
 * Version: 2.0
 */

namespace App\Modules\Employee\Validators;

use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class DynamicValidator extends LaravelValidator
{
	protected  $rules = [
		ValidatorInterface::RULE_CREATE => [
			'user_id' => 'sometimes|required|numeric',
//			'detail' => 'required|max:400'
		]
	];
	protected  $messages = [
		'user_id.required' => '理发师id不能为空',
		'user_id.numeric'  => '理发师id必须为数字',
//		'detail.required'  => '动态内容不能为空',
//		'detail.max'       => '动态内容最多不能超过400个字符'
	];
}